package com.wang.study.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 消息通知表
 * </p>
 *
 * @author mark
 * @since 2020-06-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TbNotice对象", description="消息通知表")
public class TbNotice implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "notice_id", type = IdType.AUTO)
    private Integer noticeId;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "类型 1:消息类型11;2:消息类型22;3:消息类型33;4:消息类型44;5:消息类型55")
    private Integer type;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Long createTime;

    @ApiModelProperty(value = "消息所有者")
    private String mobile;

    @ApiModelProperty(value = "关联的主题no")
    private String themeNo;

    @ApiModelProperty(value = "是否已读 0 未读; 1 已读")
    private Integer isRead;


}
